WT_DECLARE_WT_MEMBER(1,JavaScriptConstructor,"WRegExpValidator",function(d,a,e,f,g){var b=a?new RegExp("^("+a+")$",e):null;this.validate=function(c){if(c.length==0)return d?{valid:false,message:f}:{valid:true};return b?b.test(c)?{valid:true}:{valid:false,message:g}:{valid:true}}});
